﻿
class UIWidget : EventHandler
{
	void ClickEvent()
	{
		cout<<"无意义事件"<<endl;
	}
}

class Window : UIWidget
{
	Window(const string&in name)
	{
		@window = New_WidgetWindow(name);
	}

	Window()
	{
		@window = New_EmptyWindow();
	}

	WidgetWindow@ window;
}

class Button : UIWidget
{
	Button(const string&in text, const string&in name)
	{
		@button = New_WidgetButton(text, name);
		button.SetSize(0.2f,0.05f);	
		button.clickSlot.SetHandler(this,"ClickEvent");
	}

	WidgetButton@ button;
}
